package com.stone.design.patterns.proxy.gumballmonitor;

import com.stone.design.patterns.state.GumballMachine;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 4/27/18 21:51
 * @email redsstone@163.com
 */
public class GumballMonitor {

    GumballMachine mGumballMachine;

    public GumballMonitor(GumballMachine gumballMachine) {
        mGumballMachine = gumballMachine;
    }

    public void report() {
        System.out.println("Gumball Machine :" + mGumballMachine.getLocation());
        System.out.println("Current inventory :" + mGumballMachine.getCount());
        System.out.println("Current state:" +mGumballMachine.getState());
    }
}
